import { SEntityId } from "../../../../Message/Public/SEntityId";
import { EntityUtil } from "../../scene/layer/utils/EntityUtil";
type int = number;
//class PlantFlowerBlessCache
    
    export  class PlantFlowerBlessCache
    {
        

        public static addBlessDic(arg1: SEntityId): void
        {
            PlantFlowerBlessCache._blessDic[EntityUtil.toString(arg1)] = 1;
            return;
        }

        public static hasBless(arg1: SEntityId): Boolean
        {
            if (PlantFlowerBlessCache._blessDic[EntityUtil.toString(arg1)] == 1) 
            {
                return true;
            }
            return false;
        }

        public static set lastInviteTime(arg1: int)
        {
            PlantFlowerBlessCache._lastInviteTime = arg1;
            return;
        }

        public static get lastInviteTime(): int
        {
            return PlantFlowerBlessCache._lastInviteTime;
        }

        public static getInviteCd(): int
        {
            var loc1=60 - (flash.utils.getTimer() - PlantFlowerBlessCache._lastInviteTime) / 1000;
            return loc1 < 0 ? 0 : Math.floor(loc1);
        }

        /* internal */ static /* var */_blessDic: Map<any, any> /* flash.utils.Dictionary */;

        /* internal */ static /* var */_lastInviteTime: int=-100000;
    }

            PlantFlowerBlessCache._blessDic = new Map<any, any> /* flash.utils.Dictionary */();
            PlantFlowerBlessCache._lastInviteTime = -100000;
        